package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

@Data
@Entity
@Table(name = "t_subhk_ecm_ecm")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@IdClass(ECMId.class)
public class ECM {
    @Id
    @Column(name="id")
    @ExcelProperty("序号")
    private Integer id;

    @Column(name="company_name")
    @ExcelProperty("公司名称")
    private String name;

    @Column(name="trade_code")
    @ExcelProperty("上市代码")
    private String code;

    @Column(name="startdate")
    @ExcelProperty("上市日期")
    private String startdate;

    @Column(name="voluation")
    @ExcelProperty("公司估值")
    private String voluation;

    @Column(name="role")
    @ExcelProperty("我司角色")
    private String role;

    @Column(name="self_fund_flag")
    @ExcelProperty("是否自营资金支持")
    private String selfFundFlag;

    @Column(name="self_fund")
    @ExcelProperty("自营资金金额")
    private String selfFund;

    @Id
    @Column(name="fd_date")
    private Date date;

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public String getStartdate() {
        return startdate;
    }

    public void setStartdate(String startdate) {
        this.startdate = startdate;
    }

    public String getVoluation() {
        return voluation;
    }

    public void setVoluation(String voluation) {
        this.voluation = voluation;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getSelfFundFlag() {
        return selfFundFlag;
    }

    public void setSelfFundFlag(String selfFundFlag) {
        this.selfFundFlag = selfFundFlag;
    }

    public String getSelfFund() {
        return selfFund;
    }

    public void setSelfFund(String selfFund) {
        this.selfFund = selfFund;
    }
}
